<!DOCTYPE html>
<html lang="en" xmlns:wb="http://open.weibo.com/wb">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登录</title>
</head>
<script src="../../js/edition.js"></script> 
<link rel="stylesheet" href="../../css/base.css">
<script>
        document.write("<l"+"ink rel='stylesheet' href='../../css/style.css?version="+edition+"'>")
</script>
<script>
        document.write("<l"+"ink rel='stylesheet' href='../../css/popover.css?version="+edition+"'>")
</script>
<script src="../../js/jquery.js"></script>
<script src="../../js/template.js"></script>
<script> 
        document.write("<s"+"cript type='text/javascript' src='../../js/url.js?version="+edition+"'></scr"+"ipt>"); 
</script>
<script> 
        document.write("<s"+"cript type='text/javascript' src='../../js/login.js?version="+edition+"'></scr"+"ipt>"); 
</script>
<script src="../../js/popover.js"></script>
<script src="../../js/jquery.cookie.js"></script>
<script src="../../js/login_foot.js"></script>
<script src="../../js/register_header.js"></script>

<script type="text/javascript" src="http://qzonestyle.gtimg.cn/qzone/openapi/qc_loader.js" data-appid="101353641"   data-redirecturi="http://www.chinadangmai.com" charset="utf-8" ></script>

<!-- <script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=403690515&debug=true" type="text/javascript" charset="utf-8"></script> -->
<script src="http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
<script> 
   document.write("<s"+"cript type='text/javascript' src='../../js/login_2.js?version="+edition+"'></scr"+"ipt>"); 
</script>
<style>
    .login_container_bg{position: fixed; z-index:6; width: 100%; height: 100%; background: rgba(0,0,0,0.4); top: 0; display: none}
    #login_container{position: absolute; z-index: 7; width: 300px; height: 400px; top: 50%; left: 50%; background: #fff; margin-top: -200px; margin-left: -150px; display: none}
</style>
<body>
    <div class="header_t">
        <script>
                $(function(){
                    register_header();
                    $('#welecome img').attr('src','../../img/base/login_01.png');
                    $('.header_bg .fl_r').html('还没有账号？<a href="register.html" style="color:#333;">去注册&gt;&gt;</a>')
                })      
        </script>
    </div>  
    <form class="register_tab">
    <div class="login_bg">
        <input type="hidden" name="" value="" class="qc_token">
            <p class="login_title">用户登录</p>
            <ul>
                <li>
                    <em>账<i style="width: 24px; display: inline-block;"></i>号</em>
                    <input type="text" name='phone' id="phone" placeholder="请输入手机号码">
                    <div class="error">请输入正确的手机号码</div>
                </li>
                <li>
                    <em>密<i style="width: 24px; display: inline-block;"></i>码</em>
                    <input type="password" name="password" maxlength="18" id="password" placeholder="请输入密码">
                    <div class="error">请输入正确的密码</div>
                </li>
            </ul>
            <div class="select">
                <p class="fl_l">
                    <label for="login">
	                    <input type="checkbox"  name="login" id="checkbox_m">下次自动登录
	                </label>
	            </p>
                <a href="retrieve_password.html" class="fl_r">忘记密码?</a>
            </div>
            
            <div class="login_sub"><input type="submit" value="登录" id="login_sub"></div>
            <!--<div class="s_login">
                <dl>
                    <dd data-type="1" style="width:50%"><span id="qqLoginBtn"></span><a href=""><img src="../../img/login/qq.png" alt="" srcset=""></a></dd>

                    <dd class="wx_login" style="width:50%" data-type="3"><a><img src="../../img/login/wx.png" alt="" srcset=""></a></dd>-->

                    <!-- <dd data-type="2">
                    <div id="wb_connect_btn">
                        <wb:login-button onlogin="login" onlogout="logout"></wb:login-button>
                    </div>
                    <a><img src="../../img/login/wb.png" alt="" srcset=""></a>
                    </dd> -->
                <!--</dl>
            </div>           -->
    </div>
    </form>
    <div class="login_foot" id="login_foot">
        <script>
            $(function(){
                login_foot();     
            })
        </script>
    </div>
    <div class="login_container_bg"></div>
    <div id="login_container">

    </div>
    <script>
        var obj = new WxLogin({
            id:"login_container", 
            appid: "wx39e3c56e1f6d718e", 
            scope: "snsapi_login", 
            redirect_uri:"http%3a%2f%2fwww.chinadangmai.com",
            state: "",
            style: "",
            href: ""
        });
         $(".wx_login").on('click', function(){
        	 $('.login_container_bg, #login_container').stop().fadeIn()
	        $('.login_container_bg').click(function(){
	            $('.login_container_bg, #login_container').stop().fadeOut()
	        })  
        })
    </script>
</body>
<script>
    $(function(){
        // 判断底部是否定位
        var w_h=$(window).height();
        $('.register_tab').css('min-height',(w_h-382)+'px');
    })
</script>
<script>
    $(function(){
        // var u = document.referrer
        // console.log('shangge'+'........'+u)
        var url=window.location.href
        var size=url.split('=')[1]
        // console.log(size)
        // var u=url.split('m/')[1]
        // console.log(u)
        // console.log(size)
        if(size==='3'){
            $('.login_container_bg, #login_container').show()
        }
        // if($.cookie('user')!=''&&$.cookie('user')!=null){
        //     window.location.href='/index.html'
        // }
    });
</script>
</html>